package com.zoz.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zoz.service.DatabaseService;
import com.zoz.service.ResourceLoaderService;

/**
 * 文件装载器
 * @author zhuhg
 * 2020年6月4日 下午8:31:38
 */
@Controller
@RequestMapping(value = {"/code/factory/service/v1/resource/"}, produces = {"application/json;charset=utf-8"})
public class ResourceLoaderController {

	private static final Logger logger = LoggerFactory.getLogger(ResourceLoaderController.class);

    @Autowired
    private ResourceLoaderService resourceLoaderService;

    @GetMapping(value = {"/getTempaltePath"}, produces = {"application/json;charset=utf-8"})
    @ResponseBody
    public String getTempaltePath() {
        // 查询结果返回前端
        return resourceLoaderService.getTempaltePath();
    }
}
